package com.example.util;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import java.io.PrintStream;

public class L
{
  private static final String TAG = "com.wxcapp.pump";
  public static boolean isDebug = true;
  private static Toast toast;

  public static void Debug(String paramString1, String paramString2)
  {
    if (isDebug)
      System.out.println(paramString1 + "  " + paramString2);
  }

  public static void d(String paramString)
  {
    if (isDebug)
      Log.d("com.wxcapp.pump", paramString);
  }

  public static void d(String paramString1, String paramString2)
  {
    if (isDebug)
      Log.i(paramString1, paramString2);
  }

  public static void e(String paramString)
  {
    if (isDebug)
      Log.e("com.wxcapp.pump", paramString);
  }

  public static void e(String paramString1, String paramString2)
  {
    if (isDebug)
      Log.i(paramString1, paramString2);
  }

  public static void hideToast()
  {
    if ((toast != null) && (isDebug))
      toast.cancel();
  }

  public static void i(String paramString)
  {
    if (isDebug)
      Log.i("com.wxcapp.pump", paramString);
  }

  public static void i(String paramString1, String paramString2)
  {
    if (isDebug)
      Log.i(paramString1, paramString2);
  }

  public static void show(Context paramContext, int paramInt1, int paramInt2)
  {
    if (isDebug)
    {
      if (toast != null)
        //break label38;
      toast = Toast.makeText(paramContext, paramInt1, paramInt2);
      toast.setGravity(81, 0, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //label38: toast.setText(paramInt1);
    }
  }

  public static void show(Context paramContext, CharSequence paramCharSequence, int paramInt)
  {
    if (toast == null)
    {
      toast = Toast.makeText(paramContext, paramCharSequence, paramInt);
      toast.setGravity(81, 0, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //toast.setText(paramCharSequence);
    }
  }

  public static void showLong(Context paramContext, int paramInt)
  {
    if (isDebug)
    {
      if (toast != null)
        //break label38;
      toast = Toast.makeText(paramContext, paramInt, 1);
      toast.setGravity(81, 0, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //label38: toast.setText(paramInt);
    }
  }

  public static void showLong(Context paramContext, CharSequence paramCharSequence)
  {
    if (isDebug)
    {
      if (toast != null)
        //break label38;
      toast = Toast.makeText(paramContext, paramCharSequence, 1);
      toast.setGravity(81, 0, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //label38: toast.setText(paramCharSequence);
    }
  }

  public static void showShort(Context paramContext, int paramInt)
  {
    if (isDebug)
    {
      if (toast != null)
        //break label38;
      toast = Toast.makeText(paramContext, paramInt, 0);
      toast.setGravity(81, 0, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //label38: toast.setText(paramInt);
    }
  }

  public static void showShort(Context paramContext, CharSequence paramCharSequence)
  {
    if (isDebug)
    {
      if (toast != null)
        //break label28;
      toast = Toast.makeText(paramContext, paramCharSequence, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //label28: toast.setText(paramCharSequence);
    }
  }

  public static void showToast(Context paramContext, int paramInt)
  {
    if (toast == null)
    {
      toast = Toast.makeText(paramContext, paramInt, 0);
      toast.setGravity(81, 0, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //toast.setText(paramInt);
    }
  }

  public static void showToast(Context paramContext, CharSequence paramCharSequence)
  {
    if (toast == null)
    {
      toast = Toast.makeText(paramContext, paramCharSequence, 0);
      toast.setGravity(81, 0, 0);
    }
    while (true)
    {
      toast.show();
      return;
      //toast.setText(paramCharSequence);
    }
  }

  public static void v(String paramString)
  {
    if (isDebug)
      Log.v("com.wxcapp.pump", paramString);
  }

  public static void v(String paramString1, String paramString2)
  {
    if (isDebug)
      Log.i(paramString1, paramString2);
  }
}
